#include "bsp_includes.h"

int main(void)
{
    uint8_t x = 0;
    delay_init();
    usart_init();
    led_init();
    bsp_ili9341_init();
    
    while(1) 
	{		 
        led1_on();
        delay_ms(1000);
        led1_off();
        delay_ms(1000);
        
		switch(x)
		{
			case 0:lcd_clear(WHITE);break;
			case 1:lcd_clear(BLACK);break;
			case 2:lcd_clear(BLUE);break;
			case 3:lcd_clear(RED);break;
			case 4:lcd_clear(MAGENTA);break;
			case 5:lcd_clear(GREEN);break;
			case 6:lcd_clear(CYAN);break;

			case 7:lcd_clear(YELLOW);break;
			case 8:lcd_clear(BRRED);break;
			case 9:lcd_clear(GRAY);break;
			case 10:lcd_clear(LGRAY);break;
			case 11:lcd_clear(BROWN);break;
		}
        x++;
        x = x % 12;
    }
    
    return 0;
}

